home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 326-350 / disk_334 / fbm / fbm-0.9.zoo / diff-0.94-0.9a < prev    next >
Text File  |  1990-03-03  |  29KB  |  1,004 lines

  1. diff -c -r fbm/Features ami/Features
  2. *** fbm/Features    Sat Mar  3 18:37:02 1990
  3. --- ami/Features    Wed Mar 29 13:33:26 1989
  4. ***************
  5. *** 2,8 ****
  6.   *   Announcing the "Fuzzy PixMap" (or FBM) image manipulation library  *
  7.   ************************************************************************
  8.   
  9. !             Current version 0.94
  10.   
  11.   The FBM library is now available in Beta test form to interested
  12.   parties.  This package allows manipulation and conversion of a variety
  13. --- 2,8 ----
  14.   *   Announcing the "Fuzzy PixMap" (or FBM) image manipulation library  *
  15.   ************************************************************************
  16.   
  17. !             Current version 0.9
  18.   
  19.   The FBM library is now available in Beta test form to interested
  20.   parties.  This package allows manipulation and conversion of a variety
  21. ***************
  22. *** 61,75 ****
  23.   With input converter for
  24.   
  25.     o raw images (like Amiga Digi-View files)
  26. -   o Targa        By Ian MacPhedran
  27. -   o PIC            By Ian MacPhedran
  28. -   o QRT            By Butler Hines
  29.   
  30.   With output converters for
  31.   
  32.     o PostScript         (1bit or 8bit grayscale files only)
  33.     o Diablo graphics    (1bit files only)
  34. -   o Targa        By Ian MacPhedran
  35.   
  36.   Operations
  37.   
  38. --- 61,71 ----
  39. Only in fbm: MANIFEST
  40. Only in fbm: Makefile
  41. Only in ami: Makefile.unix
  42. Only in ami: README.amiga
  43. Only in ami: abort.c
  44. Only in fbm: clr2gray.1
  45. Only in fbm: fbcat.1
  46. Only in fbm: fbclean.1
  47. Only in fbm: fbedge.1
  48. Only in fbm: fbext.1
  49. diff -c -r fbm/fbext.c ami/fbext.c
  50. *** fbm/fbext.c    Sat Mar  3 18:37:19 1990
  51. --- ami/fbext.c    Tue May  9 10:13:34 1989
  52. ***************
  53. *** 1,5 ****
  54.   /*****************************************************************
  55. !  * fbext.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  56.    *
  57.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  58.    * use this file in whole or in part provided that you do not sell it
  59. --- 1,5 ----
  60.   /*****************************************************************
  61. !  * fbext.c: FBM Library 0.91 (Beta test) 20-Apr-89  Michael Mauldin
  62.    *
  63.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  64.    * use this file in whole or in part provided that you do not sell it
  65. ***************
  66. *** 13,25 ****
  67.    *           [ x y width height ] < foo.fbm > bar.fbm
  68.    *
  69.    * EDITLOG
  70. !  *    LastEditDate = Sat May 20 19:03:55 1989 - Michael Mauldin
  71.    *    LastFileName = /usr2/mlm/src/misc/fbm/fbext.c
  72.    *
  73.    * HISTORY
  74. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  75. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  76. -  *
  77.    * 20-Apr-89  Michael Mauldin (mlm) at Carnegie Mellon University
  78.    *    Beta release (version 0.91) mlm@cs.cmu.edu
  79.    *
  80. --- 13,22 ----
  81.    *           [ x y width height ] < foo.fbm > bar.fbm
  82.    *
  83.    * EDITLOG
  84. !  *    LastEditDate = Tue Mar  7 19:56:19 1989 - Michael Mauldin
  85.    *    LastFileName = /usr2/mlm/src/misc/fbm/fbext.c
  86.    *
  87.    * HISTORY
  88.    * 20-Apr-89  Michael Mauldin (mlm) at Carnegie Mellon University
  89.    *    Beta release (version 0.91) mlm@cs.cmu.edu
  90.    *
  91. ***************
  92. *** 41,47 ****
  93.   
  94.   #ifndef lint
  95.   static char *fbmid =
  96. !     "$FBM fbext.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  97.   #endif
  98.   
  99.   main (argc, argv)
  100. --- 38,44 ----
  101.   
  102.   #ifndef lint
  103.   static char *fbmid =
  104. !     "$FBM fbext.c <0.91> 20-Apr-89  (C) 1989 by Michael Mauldin$";
  105.   #endif
  106.   
  107.   main (argc, argv)
  108. ***************
  109. *** 57,65 ****
  110.     input.cm  = input.bm  = (unsigned char *) NULL;
  111.     rotated.cm = rotated.bm = (unsigned char *) NULL;
  112.     output.cm = output.bm = (unsigned char *) NULL;
  113. -   title[0] = '\0';
  114. -   credits[0] = '\0';
  115.   
  116.     /* Get the options */
  117.     while (--argc > 0 && (*++argv)[0] == '-')
  118. --- 54,59 ----
  119. Only in fbm: fbhalf.1
  120. Only in fbm: fbham.1
  121. Only in fbm: fbham.c
  122. Only in fbm: fbhist.1
  123. Only in fbm: fbinfo.1
  124. diff -c -r fbm/fbinfo.c ami/fbinfo.c
  125. *** fbm/fbinfo.c    Sat Mar  3 18:36:55 1990
  126. --- ami/fbinfo.c    Tue May  9 10:56:14 1989
  127. ***************
  128. *** 46,52 ****
  129.     { for (i=1; i<argc; i++)
  130.       { strcpy (name, argv[i]);
  131.   
  132. !       if (strcmp (name + strlen (name) - 2, ".Z") == 0)
  133.         { sprintf (cmd, "(uncompress < %s | select 0 255) 2> /dev/null", name); 
  134.           if (infile = popen (cmd, "r"))
  135.       { binfo (name, infile); pclose (infile); }
  136. --- 46,52 ----
  137.     { for (i=1; i<argc; i++)
  138.       { strcpy (name, argv[i]);
  139.   
  140. ! /*      if (strcmp (name + strlen (name) - 2, ".Z") == 0)
  141.         { sprintf (cmd, "(uncompress < %s | select 0 255) 2> /dev/null", name); 
  142.           if (infile = popen (cmd, "r"))
  143.       { binfo (name, infile); pclose (infile); }
  144. ***************
  145. *** 53,59 ****
  146.       else
  147.       { perror (cmd); }
  148.         }
  149. !       else if (infile = fopen (argv[i], "r"))
  150.         { binfo (argv[i], infile); fclose (infile); }
  151.         else
  152.         { perror (argv[i]); }
  153. --- 53,60 ----
  154.       else
  155.       { perror (cmd); }
  156.         }
  157. ! */
  158. !       if (infile = fopen (argv[i], "r"))
  159.         { binfo (argv[i], infile); fclose (infile); }
  160.         else
  161.         { perror (argv[i]); }
  162. Only in fbm: fbm.1
  163. Only in fbm: fbm2pod.1
  164. Only in fbm: fbmask.1
  165. Only in fbm: fbnorm.1
  166. Only in fbm: fbps.1
  167. Only in fbm: fbquant.1
  168. diff -c -r fbm/fbquant.c ami/fbquant.c
  169. *** fbm/fbquant.c    Sat Mar  3 18:37:33 1990
  170. --- ami/fbquant.c    Tue May  9 11:14:48 1989
  171. ***************
  172. *** 92,99 ****
  173. --- 92,102 ----
  174.       short cnt;
  175.       short color;
  176.   } PIXEL;
  177. + PIXEL *box = NULL;
  178.   
  179.   int debug=0, verbose=0, colors=256, showcolor=0, dither=1;
  180. + short *cache;
  181. + int **cerr, **lerr;
  182.   
  183.   /****************************************************************
  184.    * main
  185. ***************
  186. *** 109,115 ****
  187.   main (argc, argv)
  188.   char *argv[];
  189.   { FBM input, output, mapimage;    /* Images */
  190. !   int hist[CUBSIZ];        /* Color cube 32x32x32 for histogram */
  191.     int outtype = DEF_8BIT;    /* Output format desired */
  192.     char *mapfile = NULL;        /* Name of file to copy map from */
  193.     register int c;
  194. --- 112,118 ----
  195.   main (argc, argv)
  196.   char *argv[];
  197.   { FBM input, output, mapimage;    /* Images */
  198. !   int *hist;            /* Color cube 32x32x32 for histogram */
  199.     int outtype = DEF_8BIT;    /* Output format desired */
  200.     char *mapfile = NULL;        /* Name of file to copy map from */
  201.     register int c;
  202. ***************
  203. *** 119,124 ****
  204. --- 122,128 ----
  205.     output.bm = output.cm = (unsigned char *) NULL;
  206.     mapimage.bm = mapimage.cm = (unsigned char *) NULL;
  207.   
  208. +   hist = (int *) malloc((unsigned) CUBSIZ * 4);
  209.     /* Get the options */
  210.     while (--argc > 0 && (*++argv)[0] == '-')
  211.     { while (*++(*argv))
  212. ***************
  213. *** 212,219 ****
  214.     
  215.     /* Write out the result */
  216.     if (write_bitmap (&output, stdout, outtype))
  217. !   { exit (0); }
  218.   
  219.     exit (1);
  220.   }
  221.   
  222. --- 216,237 ----
  223.     
  224.     /* Write out the result */
  225.     if (write_bitmap (&output, stdout, outtype))
  226. !   {
  227. !     free(cmap);
  228. !     free(cerr);
  229. !     free(lerr);
  230. !     free(box);
  231. !     free(hist);
  232. !     free(cache);
  233. !       exit (0);
  234. !   }
  235.   
  236. +   free(cmap);
  237. +   free(cerr);
  238. +   free(lerr);
  239. +   free(box);
  240. +   free(hist);
  241. +   free(cache);
  242.     exit (1);
  243.   }
  244.   
  245. ***************
  246. *** 260,269 ****
  247.   COLOR *cmap;
  248.   int colors;
  249.   { register int i, k;
  250. !   PIXEL box[CUBSIZ];
  251.     register PIXEL *b;
  252.     int used=0, t;
  253.   
  254.     /* Build the first box, encompassing all pixels */  
  255.     for (b=box, i=0; i<CUBSIZ; i++)
  256.     { b->color = i;
  257. --- 278,288 ----
  258.   COLOR *cmap;
  259.   int colors;
  260.   { register int i, k;
  261. !   PIXEL *box;
  262.     register PIXEL *b;
  263.     int used=0, t;
  264.   
  265. +   box = (PIXEL *) malloc((unsigned) CUBSIZ * 4);
  266.     /* Build the first box, encompassing all pixels */  
  267.     for (b=box, i=0; i<CUBSIZ; i++)
  268.     { b->color = i;
  269. ***************
  270. *** 750,756 ****
  271.    * nearest: Choose nearest color
  272.    ****************************************************************/
  273.   
  274. ! short cache[CUBSIZ];
  275.   
  276.   init_nearest (cmap, colors)
  277.   COLOR *cmap;
  278. --- 769,775 ----
  279.    * nearest: Choose nearest color
  280.    ****************************************************************/
  281.   
  282. ! /* short cache[CUBSIZ]; */
  283.   
  284.   init_nearest (cmap, colors)
  285.   COLOR *cmap;
  286. ***************
  287. *** 757,762 ****
  288. --- 776,782 ----
  289.   int colors;
  290.   { register int i;
  291.   
  292. +   cache = (short *) malloc((unsigned) CUBSIZ * 2);
  293.     /* Initialize the cache */
  294.     for (i=0; i<CUBSIZ; i++) { cache[i] = -1; }
  295.     
  296. Only in fbm: fbrot.1
  297. Only in fbm: fbsample.1
  298. diff -c -r fbm/fbsample.c ami/fbsample.c
  299. *** fbm/fbsample.c    Sat Mar  3 18:37:05 1990
  300. --- ami/fbsample.c    Wed Mar 29 13:25:40 1989
  301. ***************
  302. *** 1,5 ****
  303.   /*****************************************************************
  304. !  * fbsample.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  305.    *
  306.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  307.    * use this file in whole or in part provided that you do not sell it
  308. --- 1,5 ----
  309.   /*****************************************************************
  310. !  * fbsample.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  311.    *
  312.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  313.    * use this file in whole or in part provided that you do not sell it
  314. ***************
  315. *** 11,23 ****
  316.    *    % fbsample [ title ] < foo.pbm > foo.fbm
  317.    *
  318.    * EDITLOG
  319. !  *    LastEditDate = Sat May 20 19:05:33 1989 - Michael Mauldin
  320.    *    LastFileName = /usr2/mlm/src/misc/fbm/fbsample.c
  321.    *
  322.    * HISTORY
  323. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  324. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  325. -  *
  326.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  327.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  328.    *
  329. --- 11,20 ----
  330.    *    % fbsample [ title ] < foo.pbm > foo.fbm
  331.    *
  332.    * EDITLOG
  333. !  *    LastEditDate = Tue Mar  7 19:56:43 1989 - Michael Mauldin
  334.    *    LastFileName = /usr2/mlm/src/misc/fbm/fbsample.c
  335.    *
  336.    * HISTORY
  337.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  338.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  339.    *
  340. ***************
  341. *** 37,43 ****
  342.   
  343.   #ifndef lint
  344.   static char *fbmid =
  345. !     "$FBM fbsample.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  346.   #endif
  347.   
  348.   main(argc, argv)
  349. --- 34,40 ----
  350.   
  351.   #ifndef lint
  352.   static char *fbmid =
  353. !     "$FBM fbsample.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  354.   #endif
  355.   
  356.   main(argc, argv)
  357. ***************
  358. *** 121,127 ****
  359.     output.hdr.rowlen = orow;
  360.     output.hdr.plnlen = orow * height;
  361.     output.hdr.aspect = 1.0;
  362. -   output.hdr.clrlen = 0;
  363.   
  364.     if (title) strcpy (output.hdr.title, title);
  365.     if (credits) strcpy (output.hdr.credits, credits);
  366. --- 118,123 ----
  367. Only in fbm: fbsharp.1
  368. diff -c -r fbm/flblue.c ami/flblue.c
  369. *** fbm/flblue.c    Sat Mar  3 18:37:14 1990
  370. --- ami/flblue.c    Fri Mar 31 23:19:00 1989
  371. ***************
  372. *** 1,5 ****
  373.   /*****************************************************************
  374. !  * flblue.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  375.    *
  376.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  377.    * use this file in whole or in part provided that you do not sell it
  378. --- 1,5 ----
  379.   /*****************************************************************
  380. !  * flblue.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  381.    *
  382.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  383.    * use this file in whole or in part provided that you do not sell it
  384. ***************
  385. *** 11,23 ****
  386.    *    bluenoise_fbm (input, output, noiselevel)
  387.    *
  388.    * EDITLOG
  389. !  *    LastEditDate = Sat May 20 19:06:08 1989 - Michael Mauldin
  390.    *    LastFileName = /usr2/mlm/src/misc/fbm/flblue.c
  391.    *
  392.    * HISTORY
  393. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  394. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  395. -  *
  396.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  397.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  398.    *
  399. --- 11,20 ----
  400.    *    bluenoise_fbm (input, output, noiselevel)
  401.    *
  402.    * EDITLOG
  403. !  *    LastEditDate = Tue Mar  7 19:56:47 1989 - Michael Mauldin
  404.    *    LastFileName = /usr2/mlm/src/misc/fbm/flblue.c
  405.    *
  406.    * HISTORY
  407.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  408.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  409.    *
  410. ***************
  411. *** 45,51 ****
  412.   
  413.   #ifndef lint
  414.   static char *fbmid =
  415. !     "$FBM flblue.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  416.   #endif
  417.   
  418.   bluenoise_fbm (input, output, noiselevel)
  419. --- 42,48 ----
  420.   
  421.   #ifndef lint
  422.   static char *fbmid =
  423. !     "$FBM flblue.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  424.   #endif
  425.   
  426.   bluenoise_fbm (input, output, noiselevel)
  427. ***************
  428. *** 71,77 ****
  429.     output->hdr.physbits = 8;
  430.     outrow = 16 * ((input->hdr.cols + 15) / 16); /* Pad to even byte boundary */
  431.     output->hdr.rowlen = outrow;
  432. -   output->hdr.plnlen = outrow*output->hdr.rows;
  433.     alloc_fbm (output);
  434.   
  435.     w = input->hdr.cols;
  436. --- 68,73 ----
  437. ***************
  438. *** 210,214 ****
  439. --- 206,212 ----
  440.         eerr[w-1] = INITERR (bmp[w-1], obm[w-1]);
  441.       }
  442.     }
  443. +   free(eerr);
  444. +   free(oerr);
  445.     return (1);
  446.   }
  447. diff -c -r fbm/flbyte.c ami/flbyte.c
  448. *** fbm/flbyte.c    Sat Mar  3 18:37:05 1990
  449. --- ami/flbyte.c    Wed Mar 29 13:26:10 1989
  450. ***************
  451. *** 1,5 ****
  452.   /*****************************************************************
  453. !  * flbyte.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  454.    *
  455.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  456.    * use this file in whole or in part provided that you do not sell it
  457. --- 1,5 ----
  458.   /*****************************************************************
  459. !  * flbyte.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  460.    *
  461.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  462.    * use this file in whole or in part provided that you do not sell it
  463. ***************
  464. *** 18,30 ****
  465.    *        LITTLE    lsb first (Vax, 6502)
  466.    *
  467.    * EDITLOG
  468. !  *    LastEditDate = Sat May 20 19:11:04 1989 - Michael Mauldin
  469.    *    LastFileName = /usr2/mlm/src/misc/fbm/flbyte.c
  470.    *
  471.    * HISTORY
  472. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  473. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  474. -  *
  475.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  476.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  477.    *
  478. --- 18,27 ----
  479.    *        LITTLE    lsb first (Vax, 6502)
  480.    *
  481.    * EDITLOG
  482. !  *    LastEditDate = Tue Mar  7 19:56:49 1989 - Michael Mauldin
  483.    *    LastFileName = /usr2/mlm/src/misc/fbm/flbyte.c
  484.    *
  485.    * HISTORY
  486.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  487.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  488.    *
  489. ***************
  490. *** 134,145 ****
  491.    ****************************************************************/
  492.   
  493.   machine_byte_order ()
  494. ! { short testshort;
  495. !   char *teststr = (char*) &testshort;
  496.   
  497. !   teststr[0] = '\1'; teststr[1] = '\0';
  498. !   if (testshort == 1)
  499.     { return (LITTLE); }
  500.     else
  501.     { return (BIG); }
  502. --- 131,140 ----
  503.    ****************************************************************/
  504.   
  505.   machine_byte_order ()
  506. ! { char *teststr = "\001\000";
  507. !   short *testshort = (short *) teststr;
  508.   
  509. !   if (*testshort == 1)
  510.     { return (LITTLE); }
  511.     else
  512.     { return (BIG); }
  513. diff -c -r fbm/flcavg.c ami/flcavg.c
  514. *** fbm/flcavg.c    Sat Mar  3 18:36:58 1990
  515. --- ami/flcavg.c    Wed Mar 29 13:26:16 1989
  516. ***************
  517. *** 1,5 ****
  518.   /*****************************************************************
  519. !  * flcavg.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  520.    *
  521.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  522.    * use this file in whole or in part provided that you do not sell it
  523. --- 1,5 ----
  524.   /*****************************************************************
  525. !  * flcavg.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  526.    *
  527.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  528.    * use this file in whole or in part provided that you do not sell it
  529. ***************
  530. *** 11,23 ****
  531.    *    constravg_fbm (input, output, gamma)
  532.    *
  533.    * EDITLOG
  534. !  *    LastEditDate = Sat May 20 19:07:06 1989 - Michael Mauldin
  535.    *    LastFileName = /usr2/mlm/src/misc/fbm/flcavg.c
  536.    *
  537.    * HISTORY
  538. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  539. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  540. -  *
  541.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  542.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  543.    *
  544. --- 11,20 ----
  545.    *    constravg_fbm (input, output, gamma)
  546.    *
  547.    * EDITLOG
  548. !  *    LastEditDate = Tue Mar  7 19:56:50 1989 - Michael Mauldin
  549.    *    LastFileName = /usr2/mlm/src/misc/fbm/flcavg.c
  550.    *
  551.    * HISTORY
  552.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  553.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  554.    *
  555. ***************
  556. *** 39,45 ****
  557.   
  558.   #ifndef lint
  559.   static char *fbmid =
  560. !     "$FBM flcavg.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  561.   #endif
  562.   
  563.   constravg_fbm (input, output, gamma)
  564. --- 36,42 ----
  565.   
  566.   #ifndef lint
  567.   static char *fbmid =
  568. !     "$FBM flcavg.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  569.   #endif
  570.   
  571.   constravg_fbm (input, output, gamma)
  572. ***************
  573. *** 62,68 ****
  574.     output->hdr.physbits = 8;
  575.     outrow = 16 * ((input->hdr.cols + 15) / 16); /* Pad to even byte boundary */
  576.     output->hdr.rowlen = outrow;
  577. -   output->hdr.plnlen = outrow*output->hdr.rows;
  578.     alloc_fbm (output);
  579.   
  580.     w = input->hdr.cols;
  581. --- 59,64 ----
  582. diff -c -r fbm/fledge.c ami/fledge.c
  583. *** fbm/fledge.c    Sat Mar  3 18:37:21 1990
  584. --- ami/fledge.c    Fri Mar 31 23:42:14 1989
  585. ***************
  586. *** 353,356 ****
  587. --- 353,357 ----
  588.         }
  589.       }
  590.     }
  591. +   free(gray);
  592.   }
  593. diff -c -r fbm/flflyd.c ami/flflyd.c
  594. *** fbm/flflyd.c    Sat Mar  3 18:37:07 1990
  595. --- ami/flflyd.c    Fri Mar 31 23:46:22 1989
  596. ***************
  597. *** 1,5 ****
  598.   /*****************************************************************
  599. !  * flflyd.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  600.    *
  601.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  602.    * use this file in whole or in part provided that you do not sell it
  603. --- 1,5 ----
  604.   /*****************************************************************
  605. !  * flflyd.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  606.    *
  607.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  608.    * use this file in whole or in part provided that you do not sell it
  609. ***************
  610. *** 11,23 ****
  611.    *    floyd_fbm (input, output)
  612.    *
  613.    * EDITLOG
  614. !  *    LastEditDate = Sat May 20 19:13:12 1989 - Michael Mauldin
  615.    *    LastFileName = /usr2/mlm/src/misc/fbm/flflyd.c
  616.    *
  617.    * HISTORY
  618. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  619. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  620. -  *
  621.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  622.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  623.    *
  624. --- 11,20 ----
  625.    *    floyd_fbm (input, output)
  626.    *
  627.    * EDITLOG
  628. !  *    LastEditDate = Tue Mar  7 19:57:07 1989 - Michael Mauldin
  629.    *    LastFileName = /usr2/mlm/src/misc/fbm/flflyd.c
  630.    *
  631.    * HISTORY
  632.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  633.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  634.    *
  635. ***************
  636. *** 43,49 ****
  637.   
  638.   #ifndef lint
  639.   static char *fbmid =
  640. !     "$FBM flflyd.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  641.   #endif
  642.   
  643.   floyd_fbm (input, output)
  644. --- 40,46 ----
  645.   
  646.   #ifndef lint
  647.   static char *fbmid =
  648. !     "$FBM flflyd.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  649.   #endif
  650.   
  651.   floyd_fbm (input, output)
  652. ***************
  653. *** 67,73 ****
  654.     output->hdr.physbits = 8;
  655.     outrow = 16 * ((input->hdr.cols + 15) / 16); /* Pad to even byte boundary */
  656.     output->hdr.rowlen = outrow;
  657. -   output->hdr.plnlen = outrow*output->hdr.rows;
  658.     alloc_fbm (output);
  659.   
  660.     w = input->hdr.cols;
  661. --- 64,69 ----
  662. ***************
  663. *** 156,160 ****
  664. --- 152,158 ----
  665.       terr = lerr; lerr = cerr; cerr = terr;
  666.     }
  667.     
  668. +   free(lerr);
  669. +   free(cerr);
  670.     return (1);
  671.   }
  672. diff -c -r fbm/flklnr.c ami/flklnr.c
  673. *** fbm/flklnr.c    Sat Mar  3 18:37:22 1990
  674. --- ami/flklnr.c    Wed Mar 29 13:28:26 1989
  675. ***************
  676. *** 117,123 ****
  677.   
  678.       for (i=0; i<w; i++)
  679.       { sum = 0;
  680. !       cnt =X      
  681.         /* Set limits of neighborhood */
  682.         left  =  i-off;        if (left < 0)    left = 0;
  683.         right =  left+nbr;    if (right > w)    right = w;
  684. --- 117,124 ----
  685.   
  686.       for (i=0; i<w; i++)
  687.       { sum = 0;
  688. !       cnt = 0;
  689. !       
  690.         /* Set limits of neighborhood */
  691.         left  =  i-off;        if (left < 0)    left = 0;
  692.         right =  left+nbr;    if (right > w)    right = w;
  693. diff -c -r fbm/flpcx.c ami/flpcx.c
  694. *** fbm/flpcx.c    Sat Mar  3 18:37:27 1990
  695. --- ami/flpcx.c    Fri Mar 31 23:55:26 1989
  696. ***************
  697. *** 259,264 ****
  698. --- 259,265 ----
  699.     { fprintf (stderr, "Read %d planes successfully\n", depth);
  700.     }
  701.   
  702. +   free(buf);
  703.     return (1);
  704.   }
  705.   
  706. diff -c -r fbm/flread.c ami/flread.c
  707. *** fbm/flread.c    Sat Mar  3 18:37:09 1990
  708. --- ami/flread.c    Wed Mar 29 14:34:06 1989
  709. ***************
  710. *** 63,69 ****
  711.     peekch = fgetc (rfile);
  712.   
  713.     /* If the image is compressed, uncompress it while reading */  
  714. !   if (peekch == COMPRESSED_CHAR)
  715.     { if (rfile == stdin)
  716.       { if (lseek (fileno (rfile), 0L, 0) < 0)  perror ("lseek");
  717.         rfile = popen ("uncompress", "r");
  718. --- 63,69 ----
  719.     peekch = fgetc (rfile);
  720.   
  721.     /* If the image is compressed, uncompress it while reading */  
  722. ! /*  if (peekch == COMPRESSED_CHAR)
  723.     { if (rfile == stdin)
  724.       { if (lseek (fileno (rfile), 0L, 0) < 0)  perror ("lseek");
  725.         rfile = popen ("uncompress", "r");
  726. ***************
  727. *** 77,83 ****
  728.   
  729.       peekch = fgetc (rfile);
  730.     }
  731. !   
  732.     magic[0] = peekch;
  733.     mlen = 1;
  734.   
  735. --- 77,83 ----
  736.   
  737.       peekch = fgetc (rfile);
  738.     }
  739. ! */  
  740.     magic[0] = peekch;
  741.     mlen = 1;
  742.   
  743. ***************
  744. *** 97,104 ****
  745.       default:        fprintf (stderr, "Unknown magic char %03o\n", peekch);
  746.     }
  747.     
  748. !   if (do_pclose)    pclose (rfile);
  749. !   else            fclose (rfile);
  750.     
  751.     return (result);
  752.   }
  753. --- 97,104 ----
  754.       default:        fprintf (stderr, "Unknown magic char %03o\n", peekch);
  755.     }
  756.     
  757. ! /*  if (do_pclose)    pclose (rfile); else */
  758. !   fclose (rfile);
  759.     
  760.     return (result);
  761.   }
  762. diff -c -r fbm/flshrp.c ami/flshrp.c
  763. *** fbm/flshrp.c    Sat Mar  3 18:37:18 1990
  764. --- ami/flshrp.c    Fri Mar 31 23:59:50 1989
  765. ***************
  766. *** 199,203 ****
  767. --- 199,204 ----
  768.       }
  769.     }
  770.     
  771. +   free(gray);
  772.     return (1);
  773.   }
  774. diff -c -r fbm/flsun.c ami/flsun.c
  775. *** fbm/flsun.c    Sat Mar  3 18:37:23 1990
  776. --- ami/flsun.c    Tue May  9 10:18:46 1989
  777. ***************
  778. *** 1,5 ****
  779.   /*****************************************************************
  780. !  * flsun.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  781.    *
  782.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  783.    * use this file in whole or in part provided that you do not sell it
  784. --- 1,5 ----
  785.   /*****************************************************************
  786. !  * flsun.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  787.    *
  788.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  789.    * use this file in whole or in part provided that you do not sell it
  790. ***************
  791. *** 12,24 ****
  792.    *    write_sun (image, wfile)
  793.    *
  794.    * EDITLOG
  795. !  *    LastEditDate = Sat May 20 19:08:32 1989 - Michael Mauldin
  796.    *    LastFileName = /usr2/mlm/src/misc/fbm/flsun.c
  797.    *
  798.    * HISTORY
  799. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  800. -  *    Fixed problem with odd length rows on reading
  801. -  *
  802.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  803.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  804.    *
  805. --- 12,21 ----
  806.    *    write_sun (image, wfile)
  807.    *
  808.    * EDITLOG
  809. !  *    LastEditDate = Thu Apr 20 16:53:36 1989 - Michael Mauldin
  810.    *    LastFileName = /usr2/mlm/src/misc/fbm/flsun.c
  811.    *
  812.    * HISTORY
  813.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  814.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  815.    *
  816. diff -c -r fbm/fltga.c ami/fltga.c
  817. *** fbm/fltga.c    Sat Mar  3 18:37:28 1990
  818. --- ami/fltga.c    Tue May  9 10:19:02 1989
  819. ***************
  820. *** 12,19 ****
  821.    *    write_tga (image, wfile)
  822.    *
  823.    * EDITLOG
  824. !  *    LastEditDate = Sat May 20 19:53:58 1989 - Michael Mauldin
  825. !  *    LastFileName = /usr2/mlm/src/misc/fbm/fltga.c
  826.    *
  827.    * HISTORY
  828.    * 03-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  829. --- 12,19 ----
  830.    *    write_tga (image, wfile)
  831.    *
  832.    * EDITLOG
  833. !  *    LastEditDate = Wed May  3 22:03:33 1989 - Michael Mauldin
  834. !  *    LastFileName = /usr2/mlm/src/misc/fbm/fbcat.c
  835.    *
  836.    * HISTORY
  837.    * 03-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  838. diff -c -r fbm/flthre.c ami/flthre.c
  839. *** fbm/flthre.c    Sat Mar  3 18:36:59 1990
  840. --- ami/flthre.c    Wed Mar 29 13:29:38 1989
  841. ***************
  842. *** 1,5 ****
  843. ! 1/*****************************************************************
  844. !  * flthre.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  845.    *
  846.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  847.    * use this file in whole or in part provided that you do not sell it
  848. --- 1,5 ----
  849. ! /*****************************************************************
  850. !  * flthre.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  851.    *
  852.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  853.    * use this file in whole or in part provided that you do not sell it
  854. ***************
  855. *** 11,23 ****
  856.    *    thesh_fbm (input, output, thresh)
  857.    *
  858.    * EDITLOG
  859. !  *    LastEditDate = Sat May 20 19:06:37 1989 - Michael Mauldin
  860.    *    LastFileName = /usr2/mlm/src/misc/fbm/flthre.c
  861.    *
  862.    * HISTORY
  863. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  864. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  865. -  *
  866.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  867.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  868.    *
  869. --- 11,20 ----
  870.    *    thesh_fbm (input, output, thresh)
  871.    *
  872.    * EDITLOG
  873. !  *    LastEditDate = Tue Mar  7 19:57:34 1989 - Michael Mauldin
  874.    *    LastFileName = /usr2/mlm/src/misc/fbm/flthre.c
  875.    *
  876.    * HISTORY
  877.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  878.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  879.    *
  880. ***************
  881. *** 39,45 ****
  882.   
  883.   #ifndef lint
  884.   static char *fbmid =
  885. !     "$FBM flthre.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  886.   #endif
  887.   
  888.   thesh_fbm (input, output, thresh)
  889. --- 36,42 ----
  890.   
  891.   #ifndef lint
  892.   static char *fbmid =
  893. !     "$FBM flthre.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  894.   #endif
  895.   
  896.   thesh_fbm (input, output, thresh)
  897. ***************
  898. *** 62,68 ****
  899.     output->hdr.physbits = 8;
  900.     outrow = 16 * ((input->hdr.cols + 15) / 16); /* Pad to even byte boundary */
  901.     output->hdr.rowlen = outrow;
  902. -   output->hdr.plnlen = outrow*output->hdr.rows;
  903.     alloc_fbm (output);
  904.   
  905.     w = input->hdr.cols;
  906. --- 59,64 ----
  907. Only in fbm: gray2clr.1
  908. Only in fbm: idiff.1
  909. Only in ami: makefile
  910. Only in fbm: part01
  911. Only in fbm: part02
  912. Only in fbm: part03
  913. Only in fbm: part04
  914. Only in fbm: part05
  915. Only in fbm: part06
  916. Only in fbm: part07
  917. Only in fbm: part08
  918. Only in fbm: pbm2ps.1
  919. Only in fbm: pbmtitle.1
  920. Only in fbm: qrt2fbm.1
  921. Only in fbm: raw2fbm.1
  922. diff -c -r fbm/raw2fbm.c ami/raw2fbm.c
  923. *** fbm/raw2fbm.c    Sat Mar  3 18:37:09 1990
  924. --- ami/raw2fbm.c    Sat Apr  1 00:37:20 1989
  925. ***************
  926. *** 1,5 ****
  927.   /*****************************************************************
  928. !  * raw2fbm.c: FBM Library 0.94 (Beta test) 20-May-89  Michael Mauldin
  929.    *
  930.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  931.    * use this file in whole or in part provided that you do not sell it
  932. --- 1,5 ----
  933.   /*****************************************************************
  934. !  * raw2fbm.c: FBM Library 0.9 (Beta test) 07-Mar-89  Michael Mauldin
  935.    *
  936.    * Copyright (C) 1989 by Michael Mauldin.  Permission is granted to
  937.    * use this file in whole or in part provided that you do not sell it
  938. ***************
  939. *** 16,28 ****
  940.    *           -d'<planes>    < rawfile > fbm
  941.    *
  942.    * EDITLOG
  943. !  *    LastEditDate = Sat May 20 19:07:44 1989 - Michael Mauldin
  944.    *    LastFileName = /usr2/mlm/src/misc/fbm/raw2fbm.c
  945.    *
  946.    * HISTORY
  947. -  * 20-May-89  Michael Mauldin (mlm) at Carnegie Mellon University
  948. -  *    Bug fix from Dave Cohrs <dave@cs.wisc.edu>
  949. -  *
  950.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  951.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  952.    *
  953. --- 16,25 ----
  954.    *           -d'<planes>    < rawfile > fbm
  955.    *
  956.    * EDITLOG
  957. !  *    LastEditDate = Tue Mar  7 19:57:50 1989 - Michael Mauldin
  958.    *    LastFileName = /usr2/mlm/src/misc/fbm/raw2fbm.c
  959.    *
  960.    * HISTORY
  961.    * 07-Mar-89  Michael Mauldin (mlm) at Carnegie Mellon University
  962.    *    Beta release (version 0.9) mlm@cs.cmu.edu
  963.    *
  964. ***************
  965. *** 39,45 ****
  966.   
  967.   #ifndef lint
  968.   static char *fbmid =
  969. !     "$FBM raw2fbm.c <0.94> 20-May-89  (C) 1989 by Michael Mauldin$";
  970.   #endif
  971.   
  972.   main (argc, argv)
  973. --- 36,42 ----
  974.   
  975.   #ifndef lint
  976.   static char *fbmid =
  977. !     "$FBM raw2fbm.c <0.9> 07-Mar-89  (C) 1989 by Michael Mauldin$";
  978.   #endif
  979.   
  980.   main (argc, argv)
  981. ***************
  982. *** 51,59 ****
  983.     unsigned char *buf;
  984.     char title[FBM_MAX_TITLE], credits[FBM_MAX_TITLE];
  985.   
  986. -   title[0] = '\0';
  987. -   credits[0] = '\0';
  988.     /* Get the options */
  989.     while (--argc > 0 && (*++argv)[0] == '-')
  990.     { while (*++(*argv))
  991. --- 48,53 ----
  992. ***************
  993. *** 127,131 ****
  994. --- 121,126 ----
  995.       }
  996.     }
  997.     
  998. +   free(buf);
  999.     exit (0);
  1000.   }
  1001.